package cn.model;

import cn.util.Toolsutil;

import java.sql.Timestamp;

public class TEquipmentSysLog {
    private int eqsysid;
    private String opertype;
    private String opermethod;
    private String requestip;
    private String userid;
    private String createdate;
    private String description;
    private String params;

    public int getEqsysid() {
        return eqsysid;
    }

    public void setEqsysid(int eqsysid) {
        this.eqsysid = eqsysid;
    }

    public String getOpertype() {
        return opertype;
    }

    public void setOpertype(String opertype) {
        this.opertype = opertype;
    }

    public String getOpermethod() {
        return opermethod;
    }

    public void setOpermethod(String opermethod) {
        this.opermethod = opermethod;
    }

    public String getRequestip() {
        return requestip;
    }

    public void setRequestip(String requestip) {
        this.requestip = requestip;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getCreatedate() {
        return Toolsutil.GetDateFormat(createdate);
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TEquipmentSysLog that = (TEquipmentSysLog) o;

        if (eqsysid != that.eqsysid) return false;
        if (opertype != null ? !opertype.equals(that.opertype) : that.opertype != null) return false;
        if (opermethod != null ? !opermethod.equals(that.opermethod) : that.opermethod != null) return false;
        if (requestip != null ? !requestip.equals(that.requestip) : that.requestip != null) return false;
        if (userid != null ? !userid.equals(that.userid) : that.userid != null) return false;
        if (createdate != null ? !createdate.equals(that.createdate) : that.createdate != null) return false;
        if (description != null ? !description.equals(that.description) : that.description != null) return false;
        if (params != null ? !params.equals(that.params) : that.params != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = eqsysid;
        result = 31 * result + (opertype != null ? opertype.hashCode() : 0);
        result = 31 * result + (opermethod != null ? opermethod.hashCode() : 0);
        result = 31 * result + (requestip != null ? requestip.hashCode() : 0);
        result = 31 * result + (userid != null ? userid.hashCode() : 0);
        result = 31 * result + (createdate != null ? createdate.hashCode() : 0);
        result = 31 * result + (description != null ? description.hashCode() : 0);
        result = 31 * result + (params != null ? params.hashCode() : 0);
        return result;
    }
}
